package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 物料类别对象 smes_material_category
 *
 * @author simpsense
 * @date 2020-11-27
 */
public class SmesMaterialCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长列 */
    private Long materialCategoryId;

    /** 原料类别名称 */
    @Excel(name = "原料类别名称")
    private String materialCategoryName;

    /** 快捷码 */
    @Excel(name = "快捷码")
    private String shortcutCode;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private String delFlag;
    /** 祖级列表 */
    private String ancestors;
    /** 父部门ID */
    private Long parentId;

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /** 显示顺序 */
    private String orderNum;

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<SmesMaterialCategory> getChildren() {
        return children;
    }

    public void setChildren(List<SmesMaterialCategory> children) {
        this.children = children;
    }

    /** 父部门名称 */
    private String parentName;

    /** 子部门 */
    private List<SmesMaterialCategory> children = new ArrayList<SmesMaterialCategory>();

    public void setMaterialCategoryId(Long materialCategoryId)
    {
        this.materialCategoryId = materialCategoryId;
    }

    public Long getMaterialCategoryId()
    {
        return materialCategoryId;
    }
    public void setMaterialCategoryName(String materialCategoryName)
    {
        this.materialCategoryName = materialCategoryName;
    }

    public String getMaterialCategoryName()
    {
        return materialCategoryName;
    }
    public void setShortcutCode(String shortcutCode)
    {
        this.shortcutCode = shortcutCode;
    }

    public String getShortcutCode()
    {
        return shortcutCode;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("materialCategoryId", getMaterialCategoryId())
                .append("parentId", getParentId())
                .append("ancestors", getAncestors())
                .append("materialCategoryName", getMaterialCategoryName())
                .append("shortcutCode", getShortcutCode())
                .append("orderNum", getOrderNum())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
